export const auditConfig = ({ baseData }) => {
  const { formKey, staffList } = baseData || {}

  return [
    {
      key: 'isOpen',
      label: '是否审核',
      type: 'switch',
      layoutCol: { sm: 24, md: 24, lg: 24 },
      initialValue: baseData[`${formKey}IsOpen`] === 0
    },
    {
      key: 'teacherId',
      layoutCol: { sm: 24, md: 24, lg: 24 },
      type: 'select',
      label: '审核者',
      required: {
        'isOpen': true
      },
      options: staffList || [],
      fieldProps: {
        props: {
          value: 'id',
          label: 'realName'
        }
      },
      initialValue: baseData[`${formKey}TeacherId`]
    }
  ]
}

export const auditSettingArr = {
  nursery: {
    title: '托班每月主题课程备课',
    category: '1'
  },
  early: {
    title: '早教课程备课',
    category: '2'
  },
  live: {
    title: '托班一日生活流程',
    category: '5'
  },
  areaBuild: {
    title: '自建课程',
    category: '3'
  }
}
